ResetAxis
重設所有內部軸的相關錯誤以將狀態從 ErrorStop 轉化為 Standstill 或 Disabled ,此不會影響函式實例的輸出。
語法
KsCommandStatus ResetAxis(
int Index
);
參數
Index [in]:軸索引。索引以零為起點;別名將影響此參數。
回傳值
返回 KsCommandStatus 結構。
備註
當軸發生錯誤將發送警報並進入 ErrorStop 狀態,此函式可清除此警報。
範例
BOOL Enable(INT Index) {
KsCommandStatus status = WaitForCommand(5, TRUE, ResetAxis(Index));
status = WaitForCommand(5, TRUE, PowerAxis(Index, TRUE, TRUE, TRUE));
return TRUE;
}
使用需求
RT | Win32 | |
---|---|---|
最低支援版本 | 4.0 | 4.0 |
標頭檔 | ksmotion.h | ksmotion.h |
程式庫 | KsApi_Rtss.lib | KsApi.lib |
參見